package com.ruoyi.bizsys.service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.ruoyi.bizsys.domain.LoanIou;
import com.ruoyi.bizsys.domain.LoanOffset;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.domain.RepaymentOrder;

/**
 * 借据冲账管理Service接口
 *
 * @author african-loan
 * @date 2021-12-30
 */
public interface ILoanOffsetService extends IService<LoanOffset>{
    /**
     * 查询借据冲账管理
     *
     * @param id 借据冲账管理ID
     * @return 借据冲账管理
     */
    public LoanOffset selectLoanOffsetById(Long id);

    /**
     * 查询借据冲账管理列表
     *
     * @param loanOffset 借据冲账管理
     * @return 借据冲账管理集合
     */
    public List<LoanOffset> selectLoanOffsetList(LoanOffset loanOffset);

    public List<LoanOffset> getList(LoanOffset loanOffset);

    /**
     * 新增借据冲账管理
     *
     * @param loanOffset 借据冲账管理
     * @return 结果
     */
    public int insertLoanOffset(LoanOffset loanOffset);

    /**
     * 修改借据冲账管理
     *
     * @param loanOffset 借据冲账管理
     * @return 结果
     */
    public int updateLoanOffset(LoanOffset loanOffset);

    /**
     * 批量删除借据冲账管理
     *
     * @param ids 需要删除的借据冲账管理ID
     * @return 结果
     */
    public int deleteLoanOffsetByIds(Long[] ids);

    /**
     * 删除借据冲账管理信息
     *
     * @param id 借据冲账管理ID
     * @return 结果
     */
    public int deleteLoanOffsetById(Long id);

    void updateLoanOffsetAndRepayOrder(RepaymentOrder repaymentOrder,String actionType);

    List<LoanOffset> selectLoanOffsetListByLateFee();
}
